package com.volunteer.mapper;

import com.volunteer.model.User;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    // 用户登陆
    User userLogin(User user);

    // 获取用户的账号类型
    Integer userType(Long userId);
}